package com.ply.flashsalessystem.entity.pojo;

import com.baomidou.mybatisplus.annotation.IdType;

import java.time.LocalTime;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalTimeSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author XiaoPan
 * @since 2022-04-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "OrderTime对象", description = "")
public class OrderTime implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "时间配置id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @JsonSerialize(using = LocalTimeSerializer.class)
    @JsonDeserialize(using = LocalTimeDeserializer.class)
    @ApiModelProperty(value = "时间")
    private LocalTime time;

    @ApiModelProperty(value = "邀请用户所获得的金额")
    private double InvitedUserAmount;

    @ApiModelProperty(value = "订单自动取消时间")
    private int orderChanelTime;

    @ApiModelProperty(value = "商家提成")
    private int commission;

    @ApiModelProperty(value = "订单 结束 时间 天数  用户签收后 还可以 退货的时间")
    private int orderOverEnd;



}
